实现局域网通讯,用户上线显示
#region Field /// <summary> /// 自己的socket 充当服务器 接收消息 /// </summary> private SocketUdpServer selfSocket = null; /// <summary> /// 对话的socket /// </summary> private SocketUdpClient tallSocket = null; /// <summary> /// 谈话对方的局域网信息 /// </summary> private LanInfo talkLan = null; /// <summary> /// 当前用户主机 /// </summary> private string currentUserHost = ""; /// <summary> /// 对控件操作 在非主线程下需要调用此代理 /// </summary> private delegate void MyInvoke(string user, string message); #endregion
评论